const Subscription = require('egg').Subscription

class MonitoringUnusual extends Subscription {
  static get schedule() {
    return {
      interval: '5s',
      type: 'worker'
    };
  }
  // 定时监控
  async subscribe() {
    await this.ctx.service.videos.monitoringUnusual.monitoring();
  }

};

module.exports = MonitoringUnusual;